package com.liwei.listener;

import net.sf.ehcache.CacheException;
import net.sf.ehcache.Status;
import net.sf.ehcache.event.CacheManagerEventListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SysCacheManagerEventListener implements CacheManagerEventListener {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void init() throws CacheException {
        logger.info("====================CacheManagerEventListener init.....");
    }

    @Override
    public Status getStatus() {
        logger.info("====================CacheManagerEventListener getStatus.....");
        return null;
    }

    @Override
    public void dispose() throws CacheException {
        logger.info("====================CacheManagerEventListener dispose.....");
    }

    @Override
    public void notifyCacheAdded(String cacheName) {
        logger.info("====================CacheManagerEventListener CacheAdded....{}.", cacheName);
    }

    @Override
    public void notifyCacheRemoved(String cacheName) {
        logger.info("====================CacheManagerEventListener CacheRemoved....{}.", cacheName);
    }
}
